#{extends 'main.html' /}
#{set title:'Edit' /}


<form action="@{Usercontroller.UserEdited()}" method="Post">

<label for="username">Name:</label>
  <input value=${user.name} type="text" required="true"  name=myName>
  
   <br/><br/>
  
  
 <label for="usermail">E-mail address:</label>
  <input value=${user.email} type="email" required="true"  name=myMail>
  
   <br/><br/>
   
   
  contribution preference :<select name="contribution_preference">
  <option>${user.contribution_preference}</option>
  <option>True</option>
  <option>False</option>
</select><br/><br/>

subscribe_preference :
<select select name="subscribe_preference">
  <option>${user.subscribe_preference}</option>
  <option>True</option>
  <option>False</option>
</select><br/><br/>




<input type="submit" value="Save changes" /><br/>
<a href="@{Usercontroller.Profile()}">To go to profile</a>
</form>


  